#pragma once

#include<iostream>
#include <string>
#include <cstdio>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>

const std::string gpath = "/home/zjiu/zjiu/250805/2.sharmem";
const int gprojId = 0x666;
const int gshmsize = 4096;

std::string ToHex(key_t k)
{
    char buff[64];
    snprintf(buff,sizeof(buff),"0x%x",k);
    return buff;
}

